import request from '@/utils/request'
export const getGoodsAPI = (id) => {
  return request.get('/goods', { params: { id } })
}
export const addCartAPI = ({ skuId, count }) => {
  return request.post('/member/cart', { skuId, count })
}
export const getCartAPI = () => {
  return request.get('/member/cart')
}
export const delCartAPI = (ids) => {
  return request.delete('/member/cart', { data: { ids } })
}
export const mergeCartAPI = (data) => {
  return request.post('/member/cart/merge', data)
}
